# -*- coding: utf-8 -*-
# @File     : handle_yaml.py.py
# @Project  : letCodeCase
# @Author   : 熊剑文
# @Time     : 2024/9/5 10:56:45
# @Copyright: 江西博微新技术有限公司
from pprint import pprint

from utils.handle_path import LetCodePath
"""
模块描述：
    
"""
import yaml

def get_yaml_data(yamlfile):
    with open(yamlfile, encoding='utf-8') as f:
        return yaml.safe_load(f.read())

if __name__ == '__main__':
    # 1. 优化路径的处理
    pprint(get_yaml_data(LetCodePath.testDatas_path / 'data_login_fail.yaml'))